import http from "../utils/http";

const LoginApi = (params) => http.post("api/user/token", {type: 'h5', ...params})
const LogoutApi = () => http.delete("api/user/token")
const UserInfoApi = (id) => http.get("api/user/" + id)
const resetPwdApi = (params) => http.patch("api/user/password", params)
const resetPhone = (params) => http.patch("api/user/phone", params)
const sendSms = () => http.get("api/user/phone/sms",)
const addUser = (params) => http.post("api/user", params);
const getUserList = () => http.get("api/user");

export {LoginApi, UserInfoApi, resetPwdApi, LogoutApi, resetPhone, sendSms, getUserList, addUser}